//
//  ZJHAccount.h
//  ZiJinHuaDemo
//
//  Created by 李宗帅 on 2018/4/2.
//  Copyright © 2018年 ZiJinHuaLive.com. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ZJHAccount : NSObject<NSCoding>

@property (nonatomic, copy) NSString *userID;//用户ID;

@property (nonatomic, copy) NSString *nickName;//用户名

@property (nonatomic, copy) NSString *imgPath;//头像

@property (nonatomic, copy) NSString *userAccount;//手机号  也就是账户

@property (nonatomic, copy) NSString *mobile;//手机号

@property (nonatomic, copy) NSString *sex;//性别

@property (nonatomic, copy) NSString *token;

@property (nonatomic, copy) NSString *createTime;//创建时间

@property (nonatomic, copy) NSString *email;//邮箱

@property (nonatomic, copy) NSString *trueName;//真实姓名

@property (nonatomic, copy) NSString *className;//班级名字

@property (nonatomic ,copy) NSString *schoolName;//学校名字

@property (nonatomic, copy) NSString *gradeName;//年纪名字

//@property (nonatomic, copy) NSString *longitude;//经度
//
//@property (nonatomic, copy) NSString *latitude;//纬度

//NSLog(@"旧的经度：%f,旧的纬度：%f",oldCoordinate.longitude,oldCoordinate.latitude);


+(instancetype)accountWithDic:(NSDictionary *)dic;

/**
 *  存储帐号
 */
+ (void)save:(ZJHAccount *)account;

/**
 *  读取帐号
 */
+ (ZJHAccount *)account;
/**
 *  删除帐号
 */
+(void )delAccount;

@end
